package threadpool;

/**
 * @Classname EveryTaskOneThread
 * @Description 每一个任务创建一个线程
 * @Date 2024/1/7 16:37
 * @Author zhuzhenguo
 */
public class EveryTaskOneThread {
    public static void main(String[] args) {
        Thread thread = new Thread(new Task());
        thread.start();
    }

    static class Task implements Runnable {

        @Override
        public void run() {
            System.out.println("执行了任务");
        }
    }
}
